@extends('Home.layout.layout')
@section('con')
<div class="container">
	<div class="col-md-10 col-xs-12 col-md-offset-1">
		<ol class="breadcrumb" style="background-color:#fff;">
			<li><a href="{{url('/homes/index')}}">首页</a></li>
		  	<li class="active" style="color:#333;">{{$ptype->pname}}</li>
		</ol>
	</div>
</div>

<div class="container">
	<div class="col-md-10 col-xs-12 col-md-offset-1">
		<div class="panel panel-info">
			<div class="row">
				<div class="col-sm-10 col-xs-12" style="margin-top:0px;">
					@foreach($ptypes as $k => $v)
						<div class="col-sm-6">
						    <div class="thumbnail">
						      <div class="caption">
						        <div class="row">
									<div class="col-sm-8 col-xs-8" style="">
										<div style="width:5px;height:20px;background-color:#006cc2;float:left;margin-right:5px;"></div>
										<h4 style="font-size:15px; margin-top:3px;float:left;margin-right:15px;">{{$v->pname}}</h4>
										<img src="{{asset($v->logo)}}" width=40px; height=40px; alt=""  style="margin-top:-8px;">
									</div>
									<p class="text-right" style="margin-right:5px;"><a style="text-decoration: none;" href="{{url('/home/ptype/info',['id'=>$v->id])}}" >查看项目</a></p>
						        </div>
						        <div class="row" style="overflow:auto; margin-left:2px;">
									<p>项目描述:{{$v->expl}}</p>
						        </div>
						        <div class="row">
						        @foreach($pcontent as $kk => $vv)
						        	@foreach($vv as $kkk => $vvv)
						        		@if($vvv->pid == $v->id)
									<img src="{{asset($vvv->pic)}}" width="50%"; alt=""  height="130px" style="float:left;">
										@endif
									@endforeach
								@endforeach
						        </div>
						        <div class="row" style="overflow:hidden;margin-left:2px;">
						        @foreach($pcontent as $kk => $vv)
						        	@foreach($vv as $kkk => $vvv)
						        		@if($vvv->pid == $v->id)
									<a href="">{{$vvv->title}}</a><br>
										@endif
									@endforeach
								@endforeach
						        </div>
						      </div>
						    </div>
					  	</div>
					@endforeach	
			  	</div>
				<div class="Telescopic">
					<div class="rq">我们的项目</div>
					<div class="nav_rig">
					@foreach($ptypes as $k => $v)
						<a href="{{url('/home/ptype/info',['id'=>$v->id])}}">{{$v->pname}}</a>
					@endforeach	
					</div>
					<div class="return_top"></div>
				</div>
			</div>
		</div>	
	</div>
</div>
@endsection